<template>
    <div>
        <x-header class="header" :left-options="{showBack: false,preventGoBack:true}">提示信息</x-header>
        <div class="content">
            <msg :title="'恭喜! 信息提交成功'" :description="description" :buttons="buttons" :icon="icon"></msg>
        </div>
    </div>
</template>
<script>
import {XHeader, Msg, Divider, XButton } from 'vux'

export default {
  components: {
    XHeader,
    Msg,
    Divider,
    XButton
  },
  methods: {
    jumpTo(){
      console.log('jump')
      setTimeout(()=>{
        this.$router.replace({name:"index"})
      },2500)
      
    }
  },
  data () {
    return {
      description: '稍后将会有工作人员与您联系，请保持手机开机',
      icon: '',
      buttons: [{
        type: 'primary',
        text: '返回首页',
        onClick: this.jumpTo()
      }]
    }
  }
}
</script>